package com.healthy.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.education.mapper.OnlineLiveEventsMapper;
import com.healthy.education.domain.OnlineLiveEvents;
import com.healthy.education.service.IOnlineLiveEventsService;

/**
 * 直播活动Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class OnlineLiveEventsServiceImpl implements IOnlineLiveEventsService 
{
    @Autowired
    private OnlineLiveEventsMapper onlineLiveEventsMapper;

    /**
     * 查询直播活动
     * 
     * @param liveEventId 直播活动主键
     * @return 直播活动
     */
    @Override
    public OnlineLiveEvents selectOnlineLiveEventsByLiveEventId(Long liveEventId)
    {
        return onlineLiveEventsMapper.selectOnlineLiveEventsByLiveEventId(liveEventId);
    }

    /**
     * 查询直播活动列表
     * 
     * @param onlineLiveEvents 直播活动
     * @return 直播活动
     */
    @Override
    public List<OnlineLiveEvents> selectOnlineLiveEventsList(OnlineLiveEvents onlineLiveEvents)
    {
        return onlineLiveEventsMapper.selectOnlineLiveEventsList(onlineLiveEvents);
    }

    /**
     * 新增直播活动
     * 
     * @param onlineLiveEvents 直播活动
     * @return 结果
     */
    @Override
    public int insertOnlineLiveEvents(OnlineLiveEvents onlineLiveEvents)
    {
        return onlineLiveEventsMapper.insertOnlineLiveEvents(onlineLiveEvents);
    }

    /**
     * 修改直播活动
     * 
     * @param onlineLiveEvents 直播活动
     * @return 结果
     */
    @Override
    public int updateOnlineLiveEvents(OnlineLiveEvents onlineLiveEvents)
    {
        return onlineLiveEventsMapper.updateOnlineLiveEvents(onlineLiveEvents);
    }

    /**
     * 批量删除直播活动
     * 
     * @param liveEventIds 需要删除的直播活动主键
     * @return 结果
     */
    @Override
    public int deleteOnlineLiveEventsByLiveEventIds(Long[] liveEventIds)
    {
        return onlineLiveEventsMapper.deleteOnlineLiveEventsByLiveEventIds(liveEventIds);
    }

    /**
     * 删除直播活动信息
     * 
     * @param liveEventId 直播活动主键
     * @return 结果
     */
    @Override
    public int deleteOnlineLiveEventsByLiveEventId(Long liveEventId)
    {
        return onlineLiveEventsMapper.deleteOnlineLiveEventsByLiveEventId(liveEventId);
    }
}
